import { getAction, deleteAction, putAction, postAction, httpAction, downFile } from '@/api/manage'

const serviceName = '/sjsk-performance-service/sjsk'

/*-----------执行考核-----------*/
// 考核自评列表查询
const getMySelfEvaluationList = (params) => getAction(`${serviceName}/selfEvaluation/getMySelfEvaluationList`, params)
// 考核自评详情
const getMySelfEvaluationDetail = (params) => getAction(`${serviceName}/selfEvaluation/getMySelfEvaluationDetail`, params)
// 考核自评详情明细
const getSelfEvaluationList = (params) => getAction(`${serviceName}/selfEvaluation/getSelfEvaluationList`, params)
// 自评操作
const selfMyEvaluation = (params) => postAction(`${serviceName}/selfEvaluation/selfMyEvaluation`, params)
// 执行考核列表查询
const implementSelfEvaluationList = (params) => getAction(`${serviceName}/selfEvaluation/implementSelfEvaluationList`, params)
// 执行考核操作
const selfEvaluation = (params) => postAction(`${serviceName}/selfEvaluation/selfEvaluation`, params)
// 执行考核-详情
const selfEvaluationDetail = (params) => getAction(`${serviceName}/selfEvaluation/selfEvaluationDetail`, params)
// 执行考核-详情明细
const selfEvaluationDetailNicety = (params) => getAction(`${serviceName}/selfEvaluation/selfEvaluationDetailNicety`, params)

/*-----------考核复议-----------*/
// 复议申请列表
const appleAssessmentList = (params) => getAction(`${serviceName}/assessment/appleAssessmentList`, params)
// 复议申请详情
const appleAssessmentDetail = (params) => getAction(`${serviceName}/assessment/appleAssessmentDetail`, params)
// 复议申请提交
const appleAssessmentSubmit = (params) => postAction(`${serviceName}/assessment/appleAssessmentSubmit`, params)
// 复议申请保存
const appleAssessmentSave = (params) => postAction(`${serviceName}/assessment/appleAssessmentSave`, params)
// 我的复议列表查询
const mineAssessmentList = (params) => getAction(`${serviceName}/assessment/mineAssessmentList`, params)
// 我的复议保存
const mineAssessmentSave = (params) => postAction(`${serviceName}/assessment/mineAssessmentSave`, params)
// 我的复议详情
const mineAssessmentDetail = (params) => getAction(`${serviceName}/assessment/mineAssessmentDetail`, params)
// 复议审核列表查询
const auditAssessmentList = (params) => getAction(`${serviceName}/assessment/auditAssessmentList`, params)
// 复议审核拒绝
const mineAssessmentDisAgree = (params) => postAction(`${serviceName}/assessment/mineAssessmentDisAgree`, params)
// 复议审核通过
const mineAssessmentAgree = (params) => postAction(`${serviceName}/assessment/mineAssessmentAgree`, params)
// 复议审核详情
const auditAssessmentDetail = (params) => getAction(`${serviceName}/assessment/auditAssessmentDetail`, params)

/*---------查询统计-----------*/
// 考核查询
const getAssess = (params) => getAction(`${serviceName}/report/getAssess`, params)
// 我的考核
const getMyAssessList = (params) => getAction(`${serviceName}/report/getMyAssessList`, params)
// 考核指标查询
const getAssessIndex = (params) => getAction(`${serviceName}/report/getAssessIndex`, params)


export default {
  getMySelfEvaluationList,
  selfEvaluation,
  getAssess,
  getMyAssessList,
  getAssessIndex,
  getMySelfEvaluationDetail,
  getSelfEvaluationList,
  implementSelfEvaluationList,
  selfMyEvaluation,
  selfEvaluationDetail,
  selfEvaluationDetailNicety,
  appleAssessmentList,
  appleAssessmentDetail,
  appleAssessmentSubmit,
  appleAssessmentSave,
  mineAssessmentList,
  mineAssessmentSave,
  mineAssessmentDetail,
  auditAssessmentList,
  mineAssessmentDisAgree,
  mineAssessmentAgree,
  auditAssessmentDetail
}
